<%--
    Document   : activityList
    Created on : 2008-12-14, 16:29:59
    Author     : HX
--%>

<%@ page language="java" import=" myUtils.Constants,myUtils.page.*,java.util.*,po.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:include value="/layout/header.jsp" />
<SCRIPT language="javascript" src="js/page-navigater.js"></SCRIPT>
<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
<script>

</script>
<!-- B.1 MAIN CONTENT -->
      <div class="main-content">


<h1 class="pagetitle">活动留言板</h1>
<hr />
       <s:if test="comments">
            <s:iterator value="comments">
            
                         <table width="80%">
                             <tr><td>
                             <s:if test="isAdmin">
                                 |<a href="deleteComment.action?commentId=<s:property value='id'/>&activityId=<s:property value='activityId'/>&orgId=<s:property value='orgId'/>">&nbsp;&nbsp;删除留言</a>
                             </s:if>
                             </td></tr>
                             <tr>
                                 <td>
                                     <a href="userInfo.action?userId=<s:property value="user.id"/>"><s:property value='user.name'/></a>
                                
                                     发表于<s:property value="time.toLocaleString()"/>
                                </td>
                             </tr>
                             <tr>
                                 <td>
                               
                               <s:property value="content" escape="false"/>
                                </td>
                             </tr>
                         </table>
            
          </s:iterator>
      </s:if>
      <s:else>
           暂无用户对该活动发表留言
       </s:else>
       <hr/>
       <form action="addComment.action" method="post" >
           <input type="hidden" name="activityId" value="<s:property value='activityId'/>">
           <input type="hidden" name="orgId" value="<s:property value='orgId'/>">
        <script type="text/javascript">
//<![CDATA[

tinyMCE.init({
  mode: "exact",
  language: "en",
  elements: "mylog",
  plugins: "table,advimage,advlink,flash",
  theme: "advanced",
  theme_advanced_toolbar_location: "top",
  theme_advanced_toolbar_align: "left",
  theme_advanced_path_location: "bottom",
  theme_advanced_buttons1: "justifyleft,justifycenter,justifyright,justifyfull,separator,bold,italic,strikethrough,separator,sub,sup,separator,charmap",
  theme_advanced_buttons2: "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,image,flash,separator,cleanup,removeformat,separator,code",
  theme_advanced_buttons3: "tablecontrols",
  extended_valid_elements: "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]",
  relative_urls: false,
  debug: false

  ,language:"fr",theme_advanced_buttons:"separator"
});
//]]>
</script><textarea name="content" id="mylog" rows="10" cols="67"></textarea>
<input type="submit" name="submit" value="发表新留言">
        </form>
              
        <hr class="clear-contentunit" />

      </div>
    </div>

    <s:include value="/layout/footer.jsp"/>



